<?php

require_once BASE_PATH.'application/models/basedao'.EXT;

class caracteristicadao extends baseDAO {
	
	var $table = 'caracteristica';
	var $key   = 'id_caracteristica';
	var $sql   = '';

	function __construct()
	{
	    parent::__construct();
	}
	function _defaultSQL()
	{
		$this->db->select('id_caracteristica, descripcion');
	}
	
    function get_descripcion($id_caracteristica)
    {
		$this->db->select('descripcion');
		$this->db->where('id_caracteristica', $id_caracteristica);
		$this->db->limit(1);
		$query = $this->db->get($this->table);
		return $query->result_array();
    }

}

?>